import * as storeObj from "@/api/qxgl-yhzzgl.js";
const state = {};
const mutations = {};
const actions = {};
for (const key in storeObj) {
  actions[key] = ({ state }, data) => {
    return new Promise((resolve, reject) => {
      storeObj[key](data).then((res) => {
        resolve(res);
      }).catch((err) => { reject(err); });
    });
  };
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
};
